<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>文章标题</title>
<link data-th-include="commons::res">
<link data-th-include="commons::ueditor">
<style type="text/css">
	#editor{
		height:75%;
	}
</style>
<script type="text/javascript">
	layui.use(['jquery','form'], function() {
		let $=layui.jquery,form=layui.form;
		let ue=UE.getEditor('editor',{
			initialFrameHeight:400
		});
	})
</script>
</head>
<body>
	<div class="layui-fluid">
		<div class="layui-row">
			<div class="layui-col-md12 layui-col-lg12">
				<ul class="layui-nav layui-anim layui-anim-fadein" lay-shrink="all">
					<li class="layui-nav-item"
						style="text-align: center; float: right;"><a href="@{/login}">登录</a></li>
					<li class="layui-nav-item"
						style="text-align: center; float: right;"><a
						href="javascript:;">注册</a></li>
					<li style="float: right; margin-top: 12px;"><i
						class="layui-icon layui-icon-username"
						style="font-size: 32px; top: 0px; bottom: 514px; margin-top: -86px;"></i></li>
					<li class="layui-nav-item"><a>产品</a></li>
					<li class="layui-nav-item"><a href="javascript:;">版块</a>
						<dl class="layui-nav-child">
							<dd>
								<a>版块1</a>
							</dd>
							<dd>
								<a>版块2</a>
							</dd>
						</dl></li>
				</ul>
			</div>
		</div>
		<form class="layui-form" method="post" data-th-action="@{/article/add}">
			<input type="hidden" name="blockId" data-th-value="${param.blockId?:blockId}"/>
			
			<div class="layui-form-item">
				<div class="layui-input-block"
					style="margin-left: 0px; margin-top: 16px;">
					<input class="layui-input" name="title"
						style="height: 60px; text-align: center; font-size: 32px;"
						type="text" autocomplete="off" placeholder="请输入文章标题" />
				</div>
			</div>
			<div class="layui-form-item">
				<div class="layui-input-block" style="margin-left: 0px;">
					<script type="text/plain" name="content" id="editor"></script>
				</div>
			</div>
			<div class="layui-form-item" style="text-align: center;">
				<button class="layui-btn layui-btn-radius layui-btn-normal layui-btn-lg" lay-submit lay-filter="add">发布</button>
			</div>
		</form>
	</div>
</body>
</html>